#ifndef WINDOWXP_H
#define WINDOWXP_H

#include <QMainWindow>
#include <QMenuBar>
#include <QToolBar>
#include <QDockWidget>
#include <QStatusBar>
#include <QMenu>
#include<QTextEdit>
#include<QHBoxLayout>
#include<QVBoxLayout>

class FunWindow: public QDockWidget{
        Q_OBJECT
public:
        FunWindow(QString &title,QWidget* p = nullptr):QDockWidget(title,p) {
             QVBoxLayout * mainlayout = new QVBoxLayout(this);
            //QHBoxLayout
        }

};

class WindowXP : public QMainWindow
{
    Q_OBJECT
public:
    explicit WindowXP(QWidget *parent = nullptr);
    //获取菜单栏
    QMenuBar *m_Bar;
    QStatusBar * s_Bar;

    QMenu * file_menu;
    QMenu * edit_menu;
    void initWindow();


    QTextEdit * edit;
    QToolBar * t_Bar1;



signals:

public slots:
        void openNewWindow();
        void customUndo();
};

#endif // WINDOWXP_H
